#include <stdio.h>

int main(){
    FILE *fp;
    fp = fopen("test.txt", "a+");
    if(fp == NULL){
        printf("Error opening file\n");
        return -1;
    }else{
        printf("File opened successfully\n");
    }
    return 0;
}